package com.teamall.web.base.db.dao.mapper;

import com.teamall.web.base.db.arg.TownInfoArg;
import com.teamall.web.base.db.po.TownInfoPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ITownInfoMapper {
    
    List<Integer> countByArg(TownInfoArg arg);

    List<TownInfoPO> selectByArg(TownInfoArg arg);

    TownInfoPO selectByPrimaryKey(Integer id);

    List<TownInfoPO> selectByArgAndPage(TownInfoArg arg, RowBounds rowBound);

    int insert(TownInfoPO record);

    int insertSelective(TownInfoPO record);

    int insertBatch(@Param("list") List<TownInfoPO> records);

    int updateByArgSelective(@Param("record") TownInfoPO record,
            @Param("arg") TownInfoArg arg);

    int updateByArg(@Param("record") TownInfoPO record,
            @Param("arg") TownInfoArg arg);

    int updateByPrimaryKeySelective(TownInfoPO record);

    int updateByPrimaryKey(TownInfoPO record);
    
    int deleteByArg(TownInfoArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}